const path = require('path')
const { override, addDecoratorsLegacy, fixBabelImports, addWebpackAlias } = require("customize-cra")

module.exports = override(
    addDecoratorsLegacy(),
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: 'css',
    }),
    addWebpackAlias({
        assets: path.resolve(__dirname, './src/assets'),
        components: path.resolve(__dirname, './src/components'),
        pages: path.resolve(__dirname, './src/pages'),
        common: path.resolve(__dirname, './src/common'),
        "@": path.resolve(__dirname, './src')
    })
)